package cn.nuist.dao;

import cn.nuist.entity.Products;

import java.util.List;

public interface ProductDao {

    List<Products> getByPage(Integer start,Integer pageSize);

    Integer getCount();

    Products getProductByName(String productName);

    Products getProductLike(String productName);

    Products getProductByID(Integer productID);

    Integer getSupplierIdByName(String supplierName);

    void add(Products products);

    void delete(Integer productID);

    void update(Products product);


    List<Products> getAll();

}
